import fetch from '@/utils/request';
/**
 *  MediaApi
 */
const MediaApi = {
	/**
	 * 获取CMS列表
	 *  query：查询参数对象
	 *  param：分页参数对象
	 */
	query: (query, param) => fetch.request({
		url: '/api/user/cms/video/query',
		method: 'POST',
		data: {
			query: query,
			param: param
		},
	}),
	/**
	 * 统计点击一次
	 * id：CMS对象id
	 */
	play: (id) => fetch.request({
		url: '/api/user/cms/video/play/' + id,
		method: 'POST',
	}),
};
export default MediaApi;
